package com.quwancode.springboot.mybatis;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication  // 开启Spring的配置
// 开启扫描的的包；当这个地方打开后，就不需要在mapper层中的 每个dao类之前添加@Mapper注解了；
@MapperScan(basePackages = "com.quwancode.springboot.mybatis.mapper") // 开启扫描的的包
public class Application {

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}

}
